import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index'
import store from './store'
//使用全局引入
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入动画库
import animate from 'animate.css/animate.min.css';
//将icon-vue中的所有组件使用别名ElIconModules命名
import * as ElIconModules from '@element-plus/icons-vue'

const app = createApp(App)
//将icons - vue中所有的组件进行注册
for (const iconName in ElIconModules) {
  app.component(iconName, ElIconModules[iconName])
}
//将store设置为全局属性
app.config.globalProperties.$store = store
app.use(router)
app.use(store)
app.use(ElementPlus)
app.use(animate)
app.mount('#app')
